/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import React from 'react';
import { Typography } from 'antd';

const { Paragraph } = Typography;

const KbCopyText = (text: string) => {
  return (
    <Paragraph style={{ margin: 0 }} copyable={text ? { text } : false}>
      {text}
    </Paragraph>
  );
};

export default KbCopyText;
